package com.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品分类
 */
@Data
@TableName("goods_kind")
@ApiModel("GoodsKind对象")
public class GoodsKind implements Serializable {
    @TableId(value = "kinds_id",type = IdType.AUTO)
    @ApiModelProperty(value = "商品分类id",required = true,example = "0")
    private Integer id;//商品分类主键

    @TableField("kinds_name")
    @ApiModelProperty("商品分类名称")
    private String name;//商品分类名称
}
